public class Animal {
    private String name;
    private int age;
    private String gender;
    public void setName(String name)
    {
        this.name = name;
    }
    public String getName()
    {
        return this.name;
    }
    public int setAge(int age)
    {
        return this.age = age;
    }
    public int getAge()
    {
        return this.age = age;
    }
    public void setGender(String gender)
    {
        this.gender = gender;
    }
    public String getGender()
    {
        return this.gender = gender;
    }
    public Animal()
    {

    }
    public Animal(String name, int age, String gender)
    {
        this.name = name;
        this.age = age;
        this.gender = gender;
    }

    public void run()
    {
        System.out.println(this.name + "正在运动");
    }

}
